//
//  Person.m
//  RunTime
//
//  Created by jayce on 17/9/25.
//  Copyright © 2017年 jjkj. All rights reserved.
//

#import "Person.h"

@implementation Person {
    
    NSString *name;
}

- (instancetype)init {
    
    self = [super init];
    if (self) {
        
        name = @"Tom";
        self.age = 12;
    }
    return self;
}

- (void)func1 {
    
    NSLog(@"执行func1方法。");
}

- (void)func2 {
    
    NSLog(@"执行func2方法。");
}
//输出person对象时的方法：
-(NSString *)description{
    
    return [NSString stringWithFormat:@"name:%@ age:%d",name,self.age];
}

@end
